package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.pojo.MarketRegion;
import com.cskaoyan.bean.vo.RegionListVO;
import com.cskaoyan.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 商场管理-行政区域
 * 创建日期: 2022/04/07 17:11
 *
 * @author HanWeiqi
 */
@RestController
@RequestMapping("admin/region")
public class MarketRegionController {
    @Autowired
    RegionService regionService;

    @RequestMapping("list")
    public BaseRespVo regionList(){
        RegionListVO regionListVO = regionService.regionList();
        return BaseRespVo.ok(regionListVO);

    }
}
